package com.he.security.rsocket.api;

public enum PayloadExchangeType {
    SETUP(false),
    FIRE_AND_FORGET(true),
    REQUEST_RESPONSE(true),
    REQUEST_STREAM(true),
    REQUEST_CHANNEL(true),
    PAYLOAD(false),
    METADATA(true);

    private final boolean isRequest;


    PayloadExchangeType(boolean isRequest) {
        this.isRequest = isRequest;
    }

    public boolean isRequest() {
        return isRequest;
    }
}
